package com.andaily.domain.dto.log;

import com.andaily.domain.dto.AbstractDTO;
import com.andaily.domain.user.LogSetting;

/**
 * @author Shengzhao Li
 */
public class LogSettingDto extends AbstractDTO {

    private boolean allowRecordPosition = true;

    public LogSettingDto() {
    }

    public LogSettingDto(LogSetting logSetting) {
        this.allowRecordPosition = logSetting.allowRecordPosition();
    }

    public boolean isAllowRecordPosition() {
        return allowRecordPosition;
    }

    public void setAllowRecordPosition(boolean allowRecordPosition) {
        this.allowRecordPosition = allowRecordPosition;
    }
}
